#ifndef IIrrTetra.h
#define IIrrTetra.h

/*
ISceneNode derived
batches a CTetraBuffer
into one scene node
*/

#include "ISceneNode.h"
#include "ITetraBuffer.h"

using namespace irr;
using namespace MarCore;

class IIrrTetra : public ISceneNode
{

    video::SMaterial material;
    scene::IMesh* mesh;
    core::aabbox3d<f32> bounding_box;

public:

    IIrrTetra(scene::ISceneNode* parent, scene::ISceneManager* mgr, s32 id)
    : scene::ISceneNode(parent, mgr, id)
	{
		material.Wireframe = false;
		material.Lighting = false;

        bounding_box.reset(Vertices[0].Pos);
		for (s32 i=1; i<4; ++i)
        bounding_box.addInternalPoint(Vertices[i].Pos);
	}

};
